package com.business.bean.oa;

import lombok.Getter;
import lombok.Setter;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;
import net.sf.rose.jdbc.bean.annotation.View;

/**
 * 
 */
@Setter
@Getter
@Table(name = "OA_DISPATCH_WORK_FILE", description = "工程调度附件表")
@View(name = "OA_DISPATCH_WORK_FILE_VIEW", description = "工程调度附件视图")
public class DispatchWorkFile {

	@Column(pk = true, type = Type.定长文本, description = "关系编号", canNull = false, size = 32, policy = "UUID")
	private String workFileID = null;

	@Column(type = Type.定长文本, description = "工程调度编号", size = 32)
	private String dispatchWorkID = null;

	@Column(type = Type.变长文本, description = "主键编号", size = 32)
	private String fileID = null;

	/** 签到集体照，签到日报，完工集体照，完工日报 */
	@Column(type = Type.变长文本, description = "文件分类", size = 50)
	private String sort = null;

	@Column(type = Type.数字整型, description = "排序")
	private int sequence = 0;

	@Column(type = Type.变长文本, description = "源文件名", size = 150)
	private transient String originalName = null;

	@Column(type = Type.变长文本, description = "目标文件名", size = 150)
	private transient String fileName = null;

	@Column(type = Type.变长文本, description = "文件类型", size = 50)
	private transient String type = null;

	@Column(type = Type.数字整型, description = "文件大小")
	private transient int size = 0;

	@Column(type = Type.变长文本, description = "文件路径", size = 250)
	private transient String url = null;
}
